﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>

<asp:Content ID="loginTitle" ContentPlaceHolderID="TitleContent" runat="server">
    Log On
</asp:Content>
<asp:Content ID="LoginHeader" ContentPlaceHolderID="HeaderContent" runat="server">
<link href="../../Content/screen_base.css" rel="stylesheet" type="text/css" />
    <link href="../../Content/login.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="loginContent" ContentPlaceHolderID="MainContent" runat="server">
    <form id="frmLogin" method="post" name="frmLogin">
    <div style="width: 100%;">
        <div align="center">
            <div id="Main">
                <div id="Heading">
                    登录到XXX &nbsp;<a title="注册成为XXX用户" href="./Register">立即注册</a></div>
                <label class="MyLabel">
                    用户名</label>
                <div class="line">
                    <input type="text" class="Textbox" id="tbUserName" name="tbUserName"/>&nbsp;<a class="tb_right"
                        tabindex="-1" href="/GetUsername.aspx">找回用户名</a></div>
                <span style="color: Red; visibility: hidden;" id="Required_UserName">用户名不能为空</span>
                <label class="MyLabel">
                    密码</label>
                <div class="line">
                    <input type="password" class="Textbox" id="tbPassword" name="tbPassword">
                    <a class="tb_right" tabindex="-1" href="/GetMyPassword.aspx">找回密码</a></div>
                <span style="color: Red; visibility: hidden;" id="Required＿Password">密码不能为空</span>
                <div>
                    <span class="chk">
                        <input type="checkbox" name="chkRemember" id="chkRemember"><label for="chkRemember">保存密码</label></span><br>
                    <input type="submit" style="margin-top: 8px" class="Button" id="btnLogin" onclick="javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions(&quot;btnLogin&quot;, &quot;&quot;, true, &quot;&quot;, &quot;&quot;, false, false))"
                        value="登  录" name="btnLogin">
                    &nbsp;&nbsp;<a href="#" id="lnkReturnUrl">返 回</a>
                </div>
                <div style="clear: both">
                    <span style="color: Red;" class="ErrorMessage" id="Message"></span>
                    <input value="#"
                        style="display: none" name="txtReturnUrl" id="txtReturnUrl">
                </div>
            </div>
        </div>
        <script type="text/javascript">
            //&lt;![CDATA[
            var Page_Validators = new Array(document.getElementById("Required_UserName"), document.getElementById("Required＿Password"));
            //]]&gt;
</script>
        <script type="text/javascript">
            //&lt;![CDATA[
            var Required_UserName = document.all ? document.all["Required_UserName"] : document.getElementById("Required_UserName");
            Required_UserName.controltovalidate = "tbUserName";
            Required_UserName.errormessage = "用户名不能为空";
            Required_UserName.evaluationfunction = "RequiredFieldValidatorEvaluateIsValid";
            Required_UserName.initialvalue = "";
            var Required＿Password = document.all ? document.all["Required＿Password"] : document.getElementById("Required＿Password");
            Required＿Password.controltovalidate = "tbPassword";
            Required＿Password.errormessage = "密码不能为空";
            Required＿Password.evaluationfunction = "RequiredFieldValidatorEvaluateIsValid";
            Required＿Password.initialvalue = "";
            //]]&gt;
</script>
        <script type="text/javascript">
            //&lt;![CDATA[

            var Page_ValidationActive = false;
            if (typeof (ValidatorOnLoad) == "function") {
                ValidatorOnLoad();
            }

            function ValidatorOnSubmit() {
                if (Page_ValidationActive) {
                    return ValidatorCommonOnSubmit();
                }
                else {
                    return true;
                }
            }
            //]]&gt;
</script>
    </div>
    </form>
</asp:Content>
